//
//  ActivityTableViewCell.m
//  AndCampus
//
//  Created by 史宵宵 on 2017/12/8.
//  Copyright © 2017年 史宵宵. All rights reserved.
//

#import "ActivityTableViewCell.h"

@implementation ActivityTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setActivityInfo:(ActivityInfo *)activityInfo{
    [self.activityImageView sd_setImageWithURL:[NSURL URLWithString:activityInfo.pathUrl] placeholderImage:KRECOMMENDLISTDEFAULT];
    self.titleLabel.text = activityInfo.title;
    self.stateLabel.text = [activityInfo.state isEqualToString:@"0"]? @"已结束":@"进行中"; //1进行时 2过时
    self.moneyLabel.text = ([activityInfo.fee isEqualToString:@"0"] || strIsEmpty(activityInfo.fee))?@"免费":[NSString stringWithFormat:@"¥%@",activityInfo.fee];
    self.peopleLabel.text = [NSString stringWithFormat:@"%@人已报名",activityInfo.readCount];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
